
<%@ page import="br.com.jambu.cge.Cliente" %>
<!doctype html>
<html>
	<head>
		<meta name="layout" content="main">
		<g:set var="entityName" value="${message(code: 'cliente.label', default: 'Cliente')}" />
		<title><g:message code="default.show.label" args="[entityName]" /></title>
	</head>
	<body>
		<a href="#show-cliente" class="skip" tabindex="-1"><g:message code="default.link.skip.label" default="Skip to content&hellip;"/></a>
		<div class="nav" role="navigation">
			<ul>
				<li><a class="home" href="${createLink(uri: '/')}"><g:message code="default.home.label"/></a></li>
				<li><g:link class="list" action="list"><g:message code="default.list.label" args="[entityName]" /></g:link></li>
				<li><g:link class="create" action="create"><g:message code="default.new.label" args="[entityName]" /></g:link></li>
			</ul>
		</div>
		<div id="show-cliente" class="content scaffold-show" role="main">
			<h1><g:message code="default.show.label" args="[entityName]" /></h1>
			<g:if test="${flash.message}">
			<div class="message" role="status">${flash.message}</div>
			</g:if>
			<ol class="property-list cliente">
			
				<g:if test="${clienteInstance?.cnpj}">
				<li class="fieldcontain">
					<span id="cnpj-label" class="property-label"><g:message code="cliente.cnpj.label" default="Cnpj" /></span>
					
						<span class="property-value" aria-labelledby="cnpj-label"><g:fieldValue bean="${clienteInstance}" field="cnpj"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${clienteInstance?.nomeFantasia}">
				<li class="fieldcontain">
					<span id="nomeFantasia-label" class="property-label"><g:message code="cliente.nomeFantasia.label" default="Nome Fantasia" /></span>
					
						<span class="property-value" aria-labelledby="nomeFantasia-label"><g:fieldValue bean="${clienteInstance}" field="nomeFantasia"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${clienteInstance?.razaoSocial}">
				<li class="fieldcontain">
					<span id="razaoSocial-label" class="property-label"><g:message code="cliente.razaoSocial.label" default="Razao Social" /></span>
					
						<span class="property-value" aria-labelledby="razaoSocial-label"><g:fieldValue bean="${clienteInstance}" field="razaoSocial"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${clienteInstance?.ativo}">
				<li class="fieldcontain">
					<span id="ativo-label" class="property-label"><g:message code="cliente.ativo.label" default="Ativo" /></span>
					
						<span class="property-value" aria-labelledby="ativo-label"><g:formatBoolean boolean="${clienteInstance?.ativo}" /></span>
					
				</li>
				</g:if>
			
				<g:if test="${clienteInstance?.dateCreated}">
				<li class="fieldcontain">
					<span id="dateCreated-label" class="property-label"><g:message code="cliente.dateCreated.label" default="Date Created" /></span>
					
						<span class="property-value" aria-labelledby="dateCreated-label"><g:formatDate date="${clienteInstance?.dateCreated}" /></span>
					
				</li>
				</g:if>
			
				<g:if test="${clienteInstance?.email}">
				<li class="fieldcontain">
					<span id="email-label" class="property-label"><g:message code="cliente.email.label" default="Email" /></span>
					
						<span class="property-value" aria-labelledby="email-label"><g:fieldValue bean="${clienteInstance}" field="email"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${clienteInstance?.incricaoEstadual}">
				<li class="fieldcontain">
					<span id="incricaoEstadual-label" class="property-label"><g:message code="cliente.incricaoEstadual.label" default="Incricao Estadual" /></span>
					
						<span class="property-value" aria-labelledby="incricaoEstadual-label"><g:fieldValue bean="${clienteInstance}" field="incricaoEstadual"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${clienteInstance?.inscricaoMunicipal}">
				<li class="fieldcontain">
					<span id="inscricaoMunicipal-label" class="property-label"><g:message code="cliente.inscricaoMunicipal.label" default="Inscricao Municipal" /></span>
					
						<span class="property-value" aria-labelledby="inscricaoMunicipal-label"><g:fieldValue bean="${clienteInstance}" field="inscricaoMunicipal"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${clienteInstance?.lastUpdated}">
				<li class="fieldcontain">
					<span id="lastUpdated-label" class="property-label"><g:message code="cliente.lastUpdated.label" default="Last Updated" /></span>
					
						<span class="property-value" aria-labelledby="lastUpdated-label"><g:formatDate date="${clienteInstance?.lastUpdated}" /></span>
					
				</li>
				</g:if>
			
				<g:if test="${clienteInstance?.telefone}">
				<li class="fieldcontain">
					<span id="telefone-label" class="property-label"><g:message code="cliente.telefone.label" default="Telefone" /></span>
					
						<span class="property-value" aria-labelledby="telefone-label"><g:fieldValue bean="${clienteInstance}" field="telefone"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${clienteInstance?.usuarios}">
				<li class="fieldcontain">
					<span id="usuarios-label" class="property-label"><g:message code="cliente.usuarios.label" default="Usuarios" /></span>
					
						<g:each in="${clienteInstance.usuarios}" var="u">
						<span class="property-value" aria-labelledby="usuarios-label"><g:link controller="usuario" action="show" id="${u.id}">${u?.encodeAsHTML()}</g:link></span>
						</g:each>
					
				</li>
				</g:if>
			
			</ol>
			<g:form>
				<fieldset class="buttons">
					<g:hiddenField name="id" value="${clienteInstance?.id}" />
					<g:link class="edit" action="edit" id="${clienteInstance?.id}"><g:message code="default.button.edit.label" default="Edit" /></g:link>
					<g:actionSubmit class="delete" action="delete" value="${message(code: 'default.button.delete.label', default: 'Delete')}" onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');" />
				</fieldset>
			</g:form>
		</div>
	</body>
</html>
